Hi Vipin,

   #get csv
    @ie.button(:src,/greenBtn_SaveReportAsCSV.gif/).click()

### hangs here.............................the following code never
executes

    autoit = WIN32OLE.new('AutoItX3.Control')
    autoit.WinWaitActive("File") #File Download window
    autoit.ControlClick
("File","","[CLASS:Button;TEXT:&Cancel;INSTANCE:3]")


The thing is script will not execute after the click until you manually
close the File dialog.
Try this put the entire code of autoit in another ruby file and execute that
code in a separate thread before click the button.
Some think like this:

Thread.new { system("rubyw [your ruby file name]") }
@ie.button(:src, src).click

Let me know if this works.

Regards,
Angrez
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to